<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>

 <div class="w100p">
    	<div class="w930 mg">
        	<div class="clearfix mg_s4">
            
            	<!-- left-->
				<div class="l_box">
                	<h3 class="menu_tit">
                    	<div class="pic clearfix"><img src="<?php echo IMG_PATH;?>title_1.gif" class="block fr"></div>
                        <div class="tit">
							<?php if($CATEGORYS[$catid][parentid]==0) { ?>
								<?php echo $CATEGORYS[$catid]['catname'];?>
							<?php } elseif ($CATEGORYS[$CATEGORYS[$catid][parentid]][parentid] == 0) { ?>
								<?php echo $CATEGORYS[$CATEGORYS[$catid]['parentid']]['catname'];?>
							<?php } else { ?>
								<?php echo $CATEGORYS[$CATEGORYS[$CATEGORYS[$catid]['parentid']]['parentid']]['catname'];?>
							<?php } ?>
						</div>
                    </h3>
                	<ul class="submenu">
						<?php if($CATEGORYS[$catid][parentid]==0) { ?>
								
						<?php } elseif ($CATEGORYS[$CATEGORYS[$catid][parentid]][parentid] == 0) { ?>
							<?php $n=1;if(is_array(subcat($CATEGORYS[$catid][parentid]))) foreach(subcat($CATEGORYS[$catid][parentid]) AS $v) { ?>
								<li>
									<a href="<?php echo $v['url'];?>" class="<?php if($v[catid]==$catid) { ?>current<?php } ?> pl25 far"><?php echo $v['catname'];?></a>
								</li>
							<?php $n++;}unset($n); ?>
							
						<?php } else { ?>
							<?php $n=1;if(is_array(subcat($CATEGORYS[$CATEGORYS[$catid][parentid]][parentid]))) foreach(subcat($CATEGORYS[$CATEGORYS[$catid][parentid]][parentid]) AS $v) { ?>
								<li>
									<a href="<?php echo $v['url'];?>" class="<?php if($CATEGORYS[$catid][parentid] == $v[catid]) { ?>current<?php } ?> pl25 far"><?php echo $v['catname'];?></a>
									<div class="child_menu">
										<?php $n=1;if(is_array(subcat($v[catid]))) foreach(subcat($v[catid]) AS $sub) { ?>
											<a href="<?php echo $sub['url'];?>" class="pl25
											<?php if($sub[catid]==$catid) { ?>on<?php } ?>
											"><?php echo $sub['catname'];?></a>
											
										<?php $n++;}unset($n); ?>
									</div>
								</li>
							<?php $n++;}unset($n); ?>
						<?php } ?>
						
						
					</ul>
                </div>
				
            	
                <!-- left--end-->
                
                <!-- right-->
                <div class="r_box">
                	<div class="content_box">
                    	<h1><?php echo $title;?></h1>
                        <div class="det">
                           <?php echo $content;?>
                        </div>
                    </div>
                    
                </div>
                <!-- right--end-->
                
            </div>
        </div>	
    </div>
<?php include template("content","footer"); ?>